Use PHP Script
2014/08/25 |
Configure httpd to use PHP scripts.
|
|
[1] | Install PHP. |
[root@www ~]#
yum -y install php php-mbstring php-pear
[root@www ~]#
vi /etc/php.ini # line 946: set your timezone date.timezone = "Asia/Tokyo"
/etc/rc.d/init.d/httpd restart |
[2] | Create a PHP test page and access to it with a web browser on Client to make sure it works normally. |
[root@www ~]#
vi /var/www/html/index.php <html> <body> <div style="width: 100%; font-size: 40px; font-weight: bold; text-align: center;"> <?php print "PHP Test Page"; ?> </div> </body> </html> |